﻿using System;
using System.Collections.Generic;
using System.Text;
using Watchdog.Bll.Base;
using Watchdog.Bll.Factory;

namespace Watchdog.Bll {

    public partial class Zone : ZoneBase {

        internal Zone () : base () {}
		
		#region [ Parent objects ]


		#endregion

		#region [ Many to many relations ]

		#endregion

		#region [ Add & Remove methods for many to many relations ]

		#endregion
		
        //#region [ One to many relations ]

        //List<TestUnit> testunits;
        //public List<TestUnit> TestUnits {
        //    get {
        //        if ( testunits == null )
        //            testunits = TestUnitFactory.GetByZone(this.Id);
        //        return testunits;
        //    }
        //}

        //#endregion
		
        //#region [ Add & Remove methods for one to many relations ]

        //public void AddTestUnit (TestUnit testunit) {
        //    testunit.Zone = this;
        //    testunit.Update();
        //    //ZoneFactory.AddTestUnit (this, testunit);
        //    //reset the collection;
        //    testunits = null;
        //}

        //public void RemoveTestUnit (TestUnit testunit) {
        //    testunit.Zone = this;
        //    testunit.Delete();
        //    //ZoneFactory.RemoveTestUnit (this, testunit);
        //    //reset the collection;
        //    testunits = null;
        //}

        //#endregion

    }
}
